import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SIslandPos } from "./SIslandPos";
import { SEntityId } from "../Public/SEntityId";
type int = number;
//class SRobIslandLog
    
    export  class SRobIslandLog
    {
       

        public __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.logType);
            this.pos.__write(arg1);
            this.guildId.__write(arg1);
            arg1.writeString(this.guildName);
            arg1.writeInt(this.playerPos);
            arg1.writeString(this.playerName);
            arg1.writeInt(this.grassCount);
            arg1.writeInt(this.grassLost);
            arg1.writeDate(this.logDt);
            return;
        }

        public __read(arg1: SerializeStream): void
        {
            this.logType = arg1.readInt();
            this.pos = new SIslandPos();
            this.pos.__read(arg1);
            this.guildId = new SEntityId();
            this.guildId.__read(arg1);
            this.guildName = arg1.readString();
            this.playerPos = arg1.readInt();
            this.playerName = arg1.readString();
            this.grassCount = arg1.readInt();
            this.grassLost = arg1.readInt();
            this.logDt = arg1.readDate();
            return;
        }

        public /* var */logType: int;

        public /* var */pos: SIslandPos;

        public /* var */guildId: SEntityId;

        public /* var */guildName: string;

        public /* var */playerPos: int;

        public /* var */playerName: string;

        public /* var */grassCount: int;

        public /* var */grassLost: int;

        public /* var */logDt: Date;
    }
